package com.chenfan.mcn.model.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author: tangwei
 * @Date: 2021/6/17 9:42
 * @Description:
 */
@Data
public class BusinessCommissionDetailExportVO implements Serializable {

    private static final long serialVersionUID = -4669913385645078979L;

    /**
     * 商务提成明细id
     */
    private Long id;

    /**
     * 商务提成id
     */
    private Long businessId;

    /**
     * 合同编号
     */
    @Excel(name = "合同编号")
    private String incomeCode;

    /**
     * 客户id
     */
    private Long customerId;

    /**
     * 合同金额
     */
    @Excel(name = "合同金额", type = 10)
    private BigDecimal businessAmount;

    /**
     * 是否含直播全案
     */
    @Excel(name = "是否含直播全案", replace = {"是_1", "否_0"})
    private Integer broadcastContract;

    /**
     * 回款状态（0未回款；1部分回款；2已回款）
     */
    @Excel(name = "回款状态", replace = {"未回款_0", "部分回款_1", "已回款_2"})
    private Integer payBackStatus;

    /**
     * 客户评分
     */
    @Excel(name = "客户等级")
    private String customerScore;

    /**
     * 是否为新客户首单（0非客户首单；1是客户首单）
     */
    @Excel(name = "是否为新客户首单", replace = {"非客户首单_0", "客户首单_1"})
    private Integer customerFirstOrder;

    /**
     * 总提点
     */
    @Excel(name = "总提点")
    private BigDecimal generalPoints;

    /**
     * 是否为重点客户（0-是，1-否）
     */
    @Excel(name = "是否为重点客户", replace = {"是_0", "否_1"})
    private Integer keyCustomers;

    /**
     * 目标达成率
     */
    @Excel(name = "目标达成率", type = 10)
    private BigDecimal targetAchievementRate;

    /**
     * 个人提成
     */
    @Excel(name = "个人提成", type = 10)
    private BigDecimal personalCommission;

    /**
     * 部门负责人id
     */
    private Long departmentHeadId;

    /**
     * 部门负责人名称
     */
    @Excel(name = "部门负责人")
    private String departmentHeadName;

    /**
     * 部门负责人提成点
     */
    @Excel(name = "部门负责人提成点", type = 10)
    private BigDecimal departmentHeadCommissionPoint;

    /**
     * 部门目标达成率
     */
    @Excel(name = "部门目标达成率", type = 10)
    private BigDecimal departmentTargetAchievementRate;

    /**
     * 部门负责人提成
     */
    @Excel(name = "部门负责人提成", type = 10)
    private BigDecimal departmentHeadCommission;

    /**
     * 提成人id
     */
    @Excel(name = "提成人ID")
    private Long commissionId;

    /**
     * 提成人名称
     */
    @Excel(name = "提成人")
    private String commissionName;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间", exportFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    /**
     * 是否删除（0-正常，1-删除）
     */
    private Integer isDelete;

    /**
     * 是否确认提成单(0-否，1-是)
     */
    private Integer isConfirmed;

    /**
     * 项目销售额
     */
    private BigDecimal projectSales;
}